<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>userPage</title>
</head>
<body>
<button id="export">导出</button>
</body>
<script th:src="@{/common/juqery3.5.1.min.js}" type="text/javascript"></script>
<script>
    $(document).ready(function () {
        $("#export").click('click',function () {
            window.location.href = "http://localhost:8080/user/export"
        });
    })

</script>
</html>